const Mock = require('mockjs2')
import {
	builder
} from '../util'
export default {
	'post|/user/list/': res => {
		let records = [];
		for (var i = 0; i < 10; i++) {
			records.push({
				'uuid': Mock.mock('@id'),
				'displayname': Mock.mock('@name'),
				'loginid': Mock.mock('@string'),
				'email': Mock.mock('@email()'),
				'Status|0-1': 0
			})
		}
		let data = Mock.mock({
			records,
			size: 20,
			total: 10,
			current: 1
		})
		const json = builder(data, '', true)
		return json
	}
}
